The clausal normal form (or clause normal form, conjunctive normal form, CNF) of a logical formula is used in logic programming and many theorem proving systems. A formula in clause normal form is a set of clauses, interpreted as a conjunction. A clause is an implicitly universally quantified set of literals, interpreted as a disjunction.[1]
The procedure to convert a formula into clausal form can destroy the structure of the formula, and naive translations often causes exponential blowup in the size of the resulting formula.
The procedure begins with any formula of classical first-order logic:
When n ≤ 1 for all clauses, the logic is called Horn clause logic and is equivalent in computational power to a universal Turing machine. Horn logic is the basis of Prolog, the most widely used logic programming language.
Often it is sufficient to generate an equisatisfiable (not an equivalent) CNF for a formula. In this case, the worst-case exponential blow-up can be avoided by introducing definitions and using them to rename parts of the formula. [2]